<?php
require_once("./DButil.php");
// 修改前的查询
$powerId = $_REQUEST["powerId"];

$sql = "select powerId,powername from t_power p where powerId={$powerId}";
$arr=query($sql)[0];
$result = [
    "msg" => "查询成功",
    "code" => 200,
    "success" => true,
    "data" => []
];

header("Content-Type:application/json;charset=utf-8");
echo json_encode($arr);
?>